package cn.panda.edu.service;

import cn.panda.edu.model.Major;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface MajorService {
	/**
	 * 
	* @Title: deleteByPrimaryKey 
	* @Description: TODO(通过主键删除) 
	* @param @param majorId
	* @param @return  
	* @return int
	 */
    int deleteByPrimaryKey(Integer majorId);

    /**
     * 
    * @Title: insert 
    * @Description: TODO(插入) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int insert(Major record);

    /**
     * 
    * @Title: insertSelective 
    * @Description: TODO(动态插入) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int insertSelective(Major record);

    /**
     * 
    * @Title: selectByPrimaryKey 
    * @Description: TODO(通过majorId 查找)
    * @param @param majorId
    * @param @return  
    * @return Major
     */
    Major selectByPrimaryKey(Integer majorId);

    /**
     * 
    * @Title: updateByPrimaryKeySelective 
    * @Description: TODO(动态 更新) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int updateByPrimaryKeySelective(Major record);

    /**
     * 
    * @Title: updateByPrimaryKeyWithBLOBs 
    * @Description: TODO( 更新) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int updateByPrimaryKeyWithBLOBs(Major record);

    /**
     * 
    * @Title: updateByPrimaryKey 
    * @Description: TODO(更新) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int updateByPrimaryKey(Major record);
    
    /**
     * 
    * @Title: selectByPageAndSelective 
    * @Description: TODO(根据专业编号或专业名称模糊查询并分页) 
    * @param majorId
    * @param majorName
    * @param pageIndex
    * @param pageSize
    * @return  
    * PageInfo<Major>
     */
    PageInfo<Major> selectByPageAndSelective(Integer majorId, int pageIndex, int pageSize);
    
    List<Major> selectAll();
}
